package com.devilvan.betrice.sinofinance.vo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Evad.Wu
 * @Description 新浪财经-A股实时行情信息表 值对象
 * @date 2023-03-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "新浪财经-A股实时行情信息表 值对象")
public class SinaAsharesQuotesVo {
    @Schema(description = "板块代码")
    @JSONField(alternateNames = {"symbol"})
    private String symbol;
    @Schema(description = "名称(name)")
    @JSONField(alternateNames = {"name"})
    private String cname;
    @Schema(description = "代码")
    @JSONField(alternateNames = {"code"})
    private String code;
    @Schema(description = "最新价(trade)")
    @JSONField(alternateNames = {"trade"})
    private Double latestPrice;
    @Schema(description = "涨跌额(pricechange)")
    @JSONField(alternateNames = {"pricechange"})
    private Double diff;
    @Schema(description = "涨跌幅(changepercent)")
    @JSONField(alternateNames = {"changepercent"})
    private Double chg;
    @Schema(description = "买入")
    @JSONField(alternateNames = {"buy"})
    private Double buy;
    @Schema(description = "卖出")
    @JSONField(alternateNames = {"sell"})
    private Double sell;
    @Schema(description = "昨收(settlement)")
    @JSONField(alternateNames = {"settlement"})
    private Double preclose;
    @Schema(description = "今开")
    @JSONField(alternateNames = {"open"})
    private Double open;
    @Schema(description = "最高(high)")
    @JSONField(alternateNames = {"high"})
    private Double highPrice;
    @Schema(description = "最低(low)")
    @JSONField(alternateNames = {"low"})
    private Double lowPrice;
    @Schema(description = "成交量/手")
    @JSONField(alternateNames = {"volume"})
    private Double volume;
    @Schema(description = "成交额/元")
    @JSONField(alternateNames = {"amount"})
    private Double amount;
    @Schema(description = "市值")
    @JSONField(alternateNames = {"mktcap"})
    private Double mktcap;
    @Schema(description = "市盈率(per)")
    @JSONField(alternateNames = {"per"})
    private Double pe;
    @Schema(description = "市净率")
    @JSONField(alternateNames = {"pb"})
    private Double pb;
    @Schema(description = "周转率")
    @JSONField(alternateNames = {"turnoverratio"})
    private Double turnoverratio;
}
